#ifndef MAPSIZE_H
#define MAPSIZE_H

#include <QDir>
#include <QList>

#include "../opxml/rwxml.h"

#define __MAPFILESIZE (MapFileSize::getInstance())

class MapFileSize
{
private:
    MapFileSize();
    virtual ~MapFileSize();

 public:
    static MapFileSize *getInstance()
    {
        static MapFileSize mapFileSizeInstance;
        return &mapFileSizeInstance;
    }

    void inputMapFile(QString qstrMapFile);
    double getMapScale() const;

private:
    void resetMulTimes();
    RwXml *m_pRwXml;

    QList<QPair<double, double> > m_qlstCompareScale;
    double m_dMulTimes;
};

#endif
